/* banner */
.banner {
    height: 500px;
    background-color: #f5f5f5;
}

.banner .wrapper {
    position: relative;
    height: 500px;
}

.banner .nav {
    position: absolute;
    left: 0;
    top: 0;
    width: 250px;
    height: 500px;
    background-color: rgba(0, 0, 0, 0.8);
}

.banner .nav li {
    height: 50px;
    line-height: 50px;
}

.banner .nav li a {
    display: block;
    width: 250px;
    height: 50px;
    padding-left: 36px;
    color: #fff;
}

.banner .nav li a:hover {
    background-color: #27ba9b;
}

.banner .nav li a::after {
    float: right;
    margin-top: 19px;
    margin-right: 19px;
    content: '';
    width: 7px;
    height: 12px;
    background-image: url(../images/sprites.png);
    background-position: -39px -110px;
}

.banner .nav li a span {
    font-size: 14px;
}

.banner .wrapper .prea {
    position: absolute;
    top: 228px;
    left: 260px;
    content: '';
    width: 44px;
    height: 44px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    background-image: url(../images/sprites.png);
    background-position: 12px -60px;
}

.banner .wrapper .next {
    position: absolute;
    top: 228px;
    right: 10px;
    content: '';
    width: 44px;
    height: 44px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    background-image: url(../images/sprites.png);
    background-position: -22px -60px;
}

.banner .wrapper ol {
    position: absolute;
    width: 200px;
    height: 10px;
    bottom: 31px;
    left: 680px;
}

.banner .wrapper ol li {
    float: left;
    width: 10px;
    height: 10px;
    margin-right: 15px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
}

/* 新鲜好物 */
.goods .hd {
    height: 112px;
    line-height: 112px;
}

.goods .hd h2 {
    font-size: 29px;
    font-weight: normal;
    color: #333;
}

.goods .hd h2 span {
    font-size: 16px;
    color: #999999;
    margin-left: 34px;
}

.goods .hd h2 a {
    float: right;
    font-size: 16px;
    color: #999999;
}

.goods .hd h2 a::after {
    display: inline-block;
    content: '';
    width: 7px;
    height: 13px;
    margin-left: 13px;
    background-image: url(../images/sprites.png);
    background-position: 0 -110px;
    vertical-align: middle;
}

.goods .bd li {
    position: relative;
    float: left;
    width: 304px;
    height: 405px;
    background-color: #f0f9f4;
    margin-right: 8px;
}

.goods .bd li:last-child {
    margin-right: 0;
}

.goods .bd li img {
    width: 304px;
}

.goods .bd li h3 {
    margin-top: 20px;
    font-size: 20px;
    text-align: center;
}

.goods .bd li div {
    margin-top: 6px;
    font-size: 23px;
    color: #9a2e1f;
    text-align: center;
}

.goods .bd li div span {
    font-size: 17px;
}

.goods .bd li b {
    position: absolute;
    text-align: center;
    top: 18px;
    left: 18px;
    width: 28px;
    height: 54px;
    line-height: 25px;
    font-size: 18px;
    font-weight: normal;
    color: #27ba9b;
    border: 2px solid #27ba9b;
    border-radius: 4px;
}

/* 生鲜 */
/* .fresh {} */

.fresh .hd {
    height: 96px;
    line-height: 96px;
}

.fresh .hd h2 {
    float: left;
    font-size: 29px;
    font-weight: 400;
}

.fresh .hd>a {
    float: right;
}

.fresh .hd>a::after {
    display: inline-block;
    content: '';
    width: 7px;
    height: 13px;
    margin-left: 13px;
    background-image: url(../images/sprites.png);
    background-position: 0 -110px;
    vertical-align: middle;
}

.fresh .hd ul {
    float: right;
    margin-right: 58px;
}

.fresh .hd li {
    float: left;
    margin-right: 7px;
}

.fresh .hd li a {
    padding: 2px 7px;
    height: 20px;
}

.fresh .hd li a:hover {
    color: #fff;
    background-color: #27ba9b;
}

.fresh .bd .aside a {
    float: left;
    width: 240px;
    height: 610px;
    background-image: url(../uploads/fresh_goods_cover.png);
}

.fresh .bd .content {
    float: right;
    width: 992px;
    height: 610px;
}

.fresh .bd .content li {
    float: left;
    margin-right: 8px;
    width: 242px;
    height: 304px;
}

.fresh .bd .content li:nth-child(4n) {
    margin-right: 0;
}

.fresh .bd .content li a {
    display: inline-block;
    position: relative;
    width: 242px;
    height: 304px;
    overflow: hidden;
}

/* 找相似实现 */
.fresh .bd .content li a::after {
    position: absolute;
    content: "找相似>>";
    width: 238px;
    height: 100px;
    left: 0;
    bottom: -100px;
    text-align: center;
    line-height: 100px;
    color: #fff;
    font-weight: 400;
    background-color: #27ba9b;
    transition: all 0.5s;
}

.fresh .bd .content li a:hover::after {
    transform: translateY(-100%);
}

.fresh .bd .content li a:hover {
    border: 2px solid #27ba9b;
}

.fresh .bd .content li a img {
    height: 184px;
    margin: 8px 29px;
}

.fresh .bd .content li a p {
    margin: 10px 30px;
    /* 超过两行显示省略号 */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.fresh .bd .content li a h3 {
    margin-left: 30px;
    font-size: 22px;
    color: #9a2e1f;
}

.fresh .bd .content li a h3 span {
    font-size: 17px;
}